package org.example.config;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

/**
 * @author control
 *
 * 动态刷新的值
 */
@RefreshScope
@Configuration
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Config {

    @Value("${user.nameConfig}")
    private String name;
}
